QT += widgets

TEMPLATE = lib
DEFINES += QTE_GUI_LIBRARY

TARGET = QTEGui

include(../pri/qt-e.pri)

INCLUDEPATH += \
	$${PWD}/core \
	$${PWD}widget \
	$${PWD}widget/container

SOURCES += \
	qteguiglobal.cpp \
	touch/jeditoperationwidget.cpp \
	touch/juvlmengine.cpp \
	touch/jscrollareauvlmengine.cpp \
	touch/private/jtouch_p.cpp \
	widgets/container/jtabwidget.cpp \
	widgets/container/jscrollarea.cpp \
	widgets/container/jtoolunitbox.cpp \
	widgets/container/jtoolwidget.cpp \
	widgets/display/jwaitbar.cpp \
	widgets/display/jwaitbox.cpp \
	widgets/input/jnumitemscroll.cpp \
	widgets/input/jpasswdlineedit.cpp \
	widgets/input/jstringitemscroll.cpp \
	widgets/input/jtouchdatetimeedit.cpp \
	widgets/itemcontainer/itemview/jlistview.cpp \
	widgets/itemcontainer/itemview/jtableview.cpp \
	widgets/itemcontainer/itemview/jtreeview.cpp \
	widgets/itemcontainer/itemwidget/jlistwidget.cpp \
	widgets/itemcontainer/itemwidget/jtablewidget.cpp \
	widgets/itemcontainer/itemwidget/jtreewidget.cpp \
	widgets/itemcontainer/jitemcontainer.cpp

HEADERS += \
	qteguiglobal.h \
	touch/jeditoperationwidget.h \
	touch/juvlmengine.h \
	touch/jscrollareauvlmengine.h \
	touch/private/jtouch_p.h \
	widgets/container/jtabwidget.h \
	widgets/container/jscrollarea.h \
	widgets/container/jtoolunitbox.h \
	widgets/container/jtoolwidget.h \
	widgets/display/jwaitbar.h \
	widgets/display/jwaitbox.h \
	widgets/input/jnumitemscroll.h \
	widgets/input/jpasswdlineedit.h \
	widgets/input/jstringitemscroll.h \
	widgets/input/jtouchdatetimeedit.h \
	widgets/itemcontainer/itemview/jlistview.h \
	widgets/itemcontainer/itemview/jtableview.h \
	widgets/itemcontainer/itemview/jtreeview.h \
	widgets/itemcontainer/itemwidget/jlistwidget.h \
	widgets/itemcontainer/itemwidget/jtablewidget.h \
	widgets/itemcontainer/itemwidget/jtreewidget.h \
	widgets/itemcontainer/jitemcontainer.h

FORMS += \
	widgets/container/jtoolunitbox.ui \
	widgets/display/jwaitbox.ui \
	widgets/input/jtouchdatetimeedit.ui

LIBS += -L$${DESTDIR} -lQTECore

unix {
	QMAKE_POST_LINK += \
		mkdir -p $${includeInstallPath}/QTEGui && \
		cp -fP $${proIncludePath}/QTEGui/* $${includeInstallPath}/QTEGui && \
		cp -fP $${sourceDir}/QTEGui/*.h $${includeInstallPath}/QTEGui && \
		cp -fP $${sourceDir}/QTEGui/touch/*.h $${includeInstallPath}/QTEGui && \
		cp -fP $${sourceDir}/QTEGui/widgets/container/*.h $${includeInstallPath}/QTEGui && \
		cp -fP $${sourceDir}/QTEGui/widgets/display/*.h $${includeInstallPath}/QTEGui && \
		cp -fP $${sourceDir}/QTEGui/widgets/input/*.h $${includeInstallPath}/QTEGui && \
		cp -fP $${sourceDir}/QTEGui/widgets/itemcontainer/itemwidget/*.h $${includeInstallPath}/QTEGui && \
		cp -fP $${sourceDir}/QTEGui/widgets/itemcontainer/itemview/*.h $${includeInstallPath}/QTEGui && \
		cp -fP $${sourceDir}/QTEGui/widgets/itemcontainer/*.h $${includeInstallPath}/QTEGui
}

win32 {
	QMAKE_POST_LINK += \
		$${proRootDir}\bin\mkdir.bat $${includeInstallPath}\QTEGui && \
		xcopy $${proIncludePath}\QTEGui\* $${includeInstallPath}\QTEGui /y /a && \
		xcopy $${sourceDir}\QTEGui\*.h $${includeInstallPath}\QTEGui /y /a && \
		xcopy $${sourceDir}\QTEGui\touch\*.h $${includeInstallPath}\QTEGui /y /a && \
		xcopy $${sourceDir}\QTEGui\widgets\container\*.h $${includeInstallPath}\QTEGui /y /a && \
		xcopy $${sourceDir}\QTEGui\widgets\display\*.h $${includeInstallPath}\QTEGui /y /a && \
		xcopy $${sourceDir}\QTEGui\widgets\input\*.h $${includeInstallPath}\QTEGui /y /a && \
		xcopy $${sourceDir}\QTEGui\widgets\itemcontainer\itemwidget\*.h $${includeInstallPath}\QTEGui /y /a && \
		xcopy $${sourceDir}\QTEGui\widgets\itemcontainer\itemview\*.h $${includeInstallPath}\QTEGui /y /a && \
		xcopy $${sourceDir}\QTEGui\widgets\itemcontainer\*.h $${includeInstallPath}\QTEGui /y /a
}
